//led 0.25s-on /0.75s-off
module fsm1 (
    input clk,//27MHz
    input reset,
    output reg led
);
    reg[24:0] cont;
    parameter  hightime=6750000-1;
    parameter  lowtime=20250000-1;
    always @(posedge clk or negedge reset) begin
        if (reset==0) begin
            led<=0;
            cont<=0;
        end else begin
            if (cont==hightime+lowtime+1) begin
                cont<=0;
            end else begin
                cont<=cont+1;
                if (cont==0) begin
                        led<=1;
                    end else begin
                        if (cont==hightime) begin
                            led<=0;
                        end 
                    end                        
            end
  
        end
    end 
endmodule


